﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="KMProducts.ascx.cs" Inherits="KMProducts" %>
<%@ Import Namespace="DTO" %>
<script src="<%=Globals.ApplicationPath%>Jquery/jquery.js" type="text/javascript"></script>
<script src="<%=Globals.ApplicationPath%>Jquery/main.js" type="text/javascript"></script>

<style>
#preview{
	position:absolute;
	border:1px solid #757578;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	}
</style>

<marquee behavior="scroll" direction="up" scrollamount="3" onmouseover="this.stop()" onmouseout="this.start()" style="width: 100%; height:200px;">

<asp:DataList ID="dtlKMProducts" EnableTheming="False" runat="server" DataSourceID="ObjKMProducts" BorderStyle="None"
       DataKeyField="ID" GridLines="None" Width="100%" RepeatColumns="1" ForeColor="Black">
       <ItemTemplate>      
            <table width="180px">
                <tr>
                    <td class="titleProduct" align="center">
                        <a href='<%#Globals.ApplicationPath%>Products/<%#Eval("ID")%>/<%#Utils.ConvertToUnSign(DataBinder.Eval(Container.DataItem, "Title").ToString())%>.aspx'/>
                            <%#Eval("Title")%>
                        </a>                        
                    </td>
                </tr>
                <tr>
                    <td align="center">
                         <p><strong class="allowHTML" title="<img src='<%#Eval("FullImageUrl") %>' />"><asp:Image runat="server" ID="Image1" Width="170px" AlternateText='<%#Eval("Title") %>' ImageUrl='<%#Eval("SmallImageUrl")%>'  /></strong></p>
                    </td>
                 </tr>
                 <tr>
                    <td align="center">
                        <div class="details">
                            <a href='<%#Globals.ApplicationPath%>Products/<%#Eval("ID")%>/<%#Utils.ConvertToUnSign(DataBinder.Eval(Container.DataItem, "Title").ToString())%>.aspx'/>
                                xem chi tiết...
                            </a>
                        </div>
                    </td>
                </tr>
            </table>
       </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource runat="server" ID="ObjKMProducts" TypeName="BLL.Store.Product" SelectMethod="ListProduct_ByDepartmentID_Department1ID_NoPageIndex">
    <SelectParameters>
        <asp:Parameter Name="departmnet1ID" Type="Int32" DefaultValue="17" />
        <asp:Parameter Name="departmnetID" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
</marquee>